Improving the Speed and Accuracy of the Miller-Rabin Primality Test
نویسندگان
چکیده
Currently, even the fastest deterministic primality tests run slowly, with the AgrawalKayal-Saxena (AKS) Primality Test runtime Õ(log(n)), and probabilistic primality tests such as the Fermat and Miller-Rabin Primality Tests are still prone to false results. In this paper, we discuss the accuracy of the Miller-Rabin Primality Test and the number of nonwitnesses for a composite odd integer n. We also extend the MillerRabin Theorem by determining when the number of nonwitnesses N(n) equals φ(n) 4 and by proving that for all n, if N(n) > 5 32 · φ(n) then n must be of one of these 3 forms: n = (2x + 1)(4x + 1), where x is an integer, n = (2x + 1)(6x + 1), where x is an integer, n is a Carmichael number of the form pqr, where p, q, r are distinct primes congruent to 3 (mod 4). We then find witnesses to certain forms of composite numbers with high rates of nonwitnesses and find that Jacobi nonresidues and 2 are both valuable bases for the Miller-Rabin test. Finally, we investigate the frequency of strong pseudoprimes further and analyze common patterns using MATLAB. This work is expected to result in a faster and better primality test for large integers.
منابع مشابه
Analyzing and Optimizing the Combined Primality test with GCD Operation on Smart Mobile Devices
Fast generation of a large prime is important to enhance security. However, primality test of prime generation takes long time. Therefore, primality tests are combined to speed up. A combination of trial division and Miller-Rabin test (TD combined test hereafter) is the most popular combination. GCD operation and Miller-Rabin test combination (GCD combined test hereafter) is also popular and ea...
متن کاملAn Optimization Algorithm of Rsa Key Generation in Embedded System
To reduce the time complexity, this paper proposes an optimization algorithm to generate the large prime number. Before the primality test, an improved prescreening algorithm is used to get rid of most of odd composite numbers. Then we introduce the Fermat’s little theorem to make a further judgement, which can decrease the times of using prescreening algorithm. At last, Miller-Rabin algorithm ...
متن کاملProving Tight Security for Standard Rabin-williams Signatures
This paper discusses the security of the Rabin-Williams publickey signature system with a deterministic signing algorithm that computes “standard signatures.” The paper proves that any generic attack on standard Rabin-Williams signatures can be mechanically converted into a factorization algorithm with comparable speed and approximately the same effectiveness. “Comparable” and “approximately” a...
متن کاملFour primality testing algorithms
Four primality testing algorithms Introduction. In this expository paper we describe four primality tests. The first test is very efficient, but is only capable of proving that a given number is either composite or 'very probably' prime. The second test is a deterministic polynomial time algorithm to prove that a given numer is either prime or composite. The third and fourth primality tests are...
متن کاملA polytime proof of correctness of the Rabin-Miller algorithm from Fermat's little theorem
Although a deterministic polytime algorithm for primality testing is now known ([4]), the Rabin-Miller randomized test of primality continues being the most efficient and widely used algorithm. We prove the correctness of the Rabin-Miller algorithm in the theory V for polynomial time reasoning, from Fermat’s little theorem. This is interesting because the Rabin-Miller algorithm is a polytime ra...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2015